﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.Common
{

    public enum MacTaskState
    {
        [Description("等待中")]
        Waiting = 0,
        [Description("被预定")]
        Booked,
        [Description("已经被接受")]
        Accept,
        [Description("执行中")]
        Serving,
        [Description("待确认")]
        WaitingForConfirm,
        [Description("确认")]
        Confirm,
        [Description("已完成")]
        Served,
        [Description("延迟确认")]
        PostponeForConfirm,
        [Description("等待扫码")]
        WaitScan,
        [Description("扫码完成")]
        ScanOk,
        [Description("失败了")]
        Failed = 100,
        [Description("未知状态")]
        Unknow,
    }

    /// <summary>
    /// 0:未知需求; 1:原材料入库; 2:原材料出库（涂布上料，分切上料）;3:涂布下料；4:涂布退料;5：分切退料;6：NG退料;7批次锁定;8批次解锁;9.采购退货;
    /// </summary>
    /// 
    public enum TaskType
    {
        [Description("未知需求")]
        Unknown = 0,
        [Description("原材料入库")]
        Warehousing = 1,
        [Description("涂布出库")]
        CoatingExwarehouse = 2,
        [Description("分切出库")]
        CuttingExwarehouse = 3,
        [Description("原材退料")]
        Return = 4,
        [Description("NG退料")]
        NG = 5,
        [Description("批次锁定")]
        Batchlock = 6,
        [Description("批次解锁")]
        Batchunlock = 7,
        [Description("采购退货")]
        Purchasereturn = 8,
        [Description("涂布下料")]
        Coatingblanking = 11,
        [Description("解绑")]
        Unlock = 12,
    }

    public enum RawfoilmachineType
    {
        [Description("未知类型")]
        unknow = 0,
        [Description("锂电")]
        Lithium,
        [Description("标箔")]
        Standard,
        [Description("两用")]
        Dual,
        [Description("三车间")]
        Three,
    }
    public enum Bakingstate
    {

        [Description("未知状态")]
        unknow = 0,
        [Description("无需烘烤")]
        Nobaking,
        [Description("已经烘烤")]
        Baked,
        [Description("待烘烤")]
        Tobebaked,
        [Description("无需后处理")]
        NoProcessing,
        [Description("已经后处理")]
        Processed,
        [Description("待后处理")]
        ToProcessed,
        //[Description("已检验")]
        //Checkouted,

    }
    public enum Foiltype
    {
        [Description("未知类型")]
        unknow = 0,
        [Description("锂电")]
        Lithium,
        [Description("标箔")]
        Standard,
    }
    public enum EmptyFullStatus
    {
        [Description("未知状态")]
        unknow = 0,
        [Description("空卷")]
        Empty,
        [Description("满卷")]
        Full,
    }
    /// <summary>
    /// 0:未知物料; 1:原材料; 2涂布 3分切  4:已涂布卷料(不熟化); 5:已涂布卷料(要熟化); 6:已涂布卷料(已报工);  7:NG料
    /// </summary>
    public enum Materialtype
    {
        [Description("未知类型")]
        Unknown = 0,
        [Description("原材料")]
        Rawmaterial = 1,
        [Description("已涂布卷料(不熟化)")]
        CoatedcoilNo = 2,
        [Description("已涂布卷料(熟化)")]
        CoatedcoilOk = 3,
        [Description("已涂布卷料(已报工)")]
        CoatedcoilEnd = 4,
        [Description("未涂布完成(不熟化)")]
        UNCoatedcoilNo = 5,
        [Description("未涂布完成(需熟化)")]
        UNCoatedcoilOk = 6,
        [Description("NG料")]
        NG = 12,
    }
    public enum ChacheType
    {
        [Description("生箔合格")]
        HG = 0,
        [Description("不合格")]
        BHG = 1,
        [Description("后处理合格")]
        HCLHG = 2,
        //[Description("已涂布卷料(不熟化)")]
        //CoatedcoilNo = 2,
    }
    public enum DeviceTypeEnum
    {
        [Description("未知设备")]
        Unknown = 0,
        //[Description("涂布机")]
        //Coater,
        //[Description("辊压机")]
        //RollerPress,
        //[Description("分切机")]
        //Slitting,
        //[Description("辊分机")]
        //RollerSlitting,
        //[Description("叠片机")]
        //Stacker,
        [Description("原材料立体库")]
        RawMaterialWarehouse,
        [Description("熟化室立体库")]
        AgingWarehouse,
        [Description("半成品立体库")]
        SFPWarehouse,
        [Description("充电机")]
        Charger,
        [Description("休息区")]
        RestArea,
        //[Description("物流线")]
        //Logistic,
        [Description("原材料取料缓存架")]
        RawMaterialWindCache,
        [Description("原材料中转缓存架")]
        RawMaterTansferCache,
        [Description("原材料放料缓存架")]
        RawMaterialUnwindCache,
        [Description("涂布中转缓存架")]
        CoaterTansferCache,
        [Description("涂布放料缓存架")]
        CoaterUnwindCache,
        [Description("辊压中转缓存架")]
        RollerPressTansferCache,
        [Description("辊压放料缓存架")]
        RollerPressUnwindCache,
        [Description("分切中转缓存架")]
        SlittingTansferCache,
        [Description("分切放料缓存架")]
        SlittingUnwindCache,


    }
    public enum FisStatusEnum
    {
        [Description("未知状态")]
        unknow = 0,
        [Description("无需烘烤")]
        Nobaking,
        [Description("已经烘烤")]
        Baked,
        [Description("待烘烤")]
        Tobebaked,
        [Description("无需后处理")]
        NoProcessing=11,
        [Description("已经后处理")]
        Processed,
        [Description("待后处理")]
        ToProcessed,


    }

}
